﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BGCMS.Models.Child>" %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

            <div class="editor-label">
                <label for = "Name">Nafn</label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>

            <div class="editor-label">
                <label for="datepicker">Fæðingardagur eða væntanlegur fæðingardagur</label>
            </div>
            <div class="editor-field">
                <input type="text" id="datepicker" name="datepicker" value="<%: Model.DateOfBirth.ToString("dd/MM/yyyy") %>" readonly="readonly"/>
            </div>
            
            <div class="editor-label">
                <label for = "Gender">Kyn barns</label>
            </div>
            <div class="editor-field">
                <%: Html.RadioButtonFor(model => model.Gender, true) %> Stúlka
                <%: Html.RadioButtonFor(model => model.Gender, false) %> Drengur
                <%: Html.ValidationMessageFor(model => model.Gender) %>
            </div>

            <p>
                <input type="submit" value="Skrá" />
            </p>

    <% } %>

   


